{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
          <section class="col-lg-2 connectedSortable" style=" padding-right:0px;">
          <div class="box box-solid">
            {%include file="ware/left.tpl.php"%}
         </div>
        </section>
        <!--树状图结束-->
        <section class="col-lg-10 connectedSortable">
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">管理分类</h3>
              <a href="index.php?a=ware.typeadd" class="btn btn-primary btn-sm" style="float:right;">自建分类</a>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <div class="table-responsive mailbox-messages">
                <table class="table table-bordered table-striped" id="mytable">
                <thead>
                  <tr>
                     <td>分类名称</td>
                     <td>添加时间</td>
                     <td>操作</td>
                  </tr>
				 </thead>
				 {%foreach from=$type_lists key=key item=value%}
				 <tr>
                     <td>{%$value.type_name%}</td>
                     <td>{%$value.create_time%}</td>
                     <td width="150">
                     	  <a href="index.php?a=ware.typeupdate&type_id={%$value.type_id%}" class="btn btn-warning btn-xs">修 改</a>
                          <a onclick="if(confirm('警告！确认删除信息?')==false)return false;" href="index.php?a=ware.typedel&type_id={%$value.type_id%} " class="btn btn-danger btn-xs">删 除</a>
                     </td>
                  </tr>
				{%/foreach%}  
                </table>
                <!-- /.table -->
              </div>
			  {%$page%} 
              <!-- /.mail-box-messages -->
            </div>
            <!-- /.box-body -->
            <div class="box-footer no-padding">
            </div>
          </div>
		  
          <!-- /. box -->
        </section>   
		
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
